xen/arm: p2m: Extend p2m_get_entry to return the value of bit[0] (valid bit)
authorJulien Grall <julien.grall@arm.com>
Mon, 6 Aug 2018 16:47:54 +0000 (17:47 +0100)
committerJulien Grall <julien.grall@arm.com>
Wed, 12 Dec 2018 16:07:53 +0000 (16:07 +0000)
commit0bc1a7b3005c91695ddebf7841ef81d12e0e435e
tree6792f593be984c35f03fdaa9c48c18f6779d7f98
parentcd851472876ded5b5d10f83a29988f4d2302adea
xen/arm: p2m: Extend p2m_get_entry to return the value of bit[0] (valid bit)

With the recent changes, a P2M entry may be populated but may not be
valid. In some situation, it would be useful to know whether the entry
has been marked available to guest in order to perform a specific
action. So extend p2m_get_entry to return the value of bit[0] (valid bit).

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mem_access.c
xen/arch/arm/p2m.c
xen/include/asm-arm/p2m.h